package lj;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IoUtil;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * @author: liuwenju
 * @date: 2023/6/19 15:44
 * @version: 1.0
 */
public class LJTest {

    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fileOutputStream = new FileOutputStream(FileUtil.file("C:\\Users\\17391\\Desktop\\新建 文本文档.txt"), true);

        IoUtil.write(fileOutputStream, true, "eeeee".getBytes());

        IoUtil.close(fileOutputStream);
    }
}
